<!DOCTYPE html>
<html lang="en" xmlns:v-bind="http://www.w3.org/1999/xhtml" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>11vue-v-model双向数据绑定指令</title>
    <script type="text/javascript" src="static/vue.min.js"></script>
</head>

<body>
<div class="tab_con">
    <p>{{name}}</p>
    昵称: <input type="text" v-model="name"><br>
    <p>{{pwd}}</p>
    密码: <input type="password" v-model="pwd"><br>
    <p>{{gender}}</p>
    性别: <input type="radio" v-model="gender" value="1">男
    <input type="radio" v-model="gender" value="0">女 <br>
    <p>{{hobby}}</p>
    爱好:<input type="checkbox" v-model="hobby" value="c">唱<br>
        <input type="checkbox" v-model="hobby" value="t">跳<br>
        <input type="checkbox" v-model="hobby" value="rap">rap<br>
        <input type="checkbox" v-model="hobby" value="lq">篮球
</div>
<script>
    new Vue({
        el: ".tab_con",
        data: {
            name: "周深",
            pwd: 3456789,
            gender: 1,
            hobby: []
        },
        methods: {}
    })
</script>
</body>
</html>